/* 首页样式 */

/* 版心 */
.wrapper {
    margin: 0 auto;
    width: 1200px;
}

body {
    background-color: #f3f5f7;
}

.header {
    height: 100px;
    background-color: #fff;   
}

.header .wrapper {
    display: flex;
    padding: 30px;
}

.logo a {
    display: block;
    width: 195px;
    height: 41px;
    background-image: url(./images/学成在线.png);
    background-size: cover;
    font-size: 0;
}

.nav {
    margin-left: 102px;
}

.nav ul {
    display: flex;
}

.nav li {
    margin-right: 24px;
}
.nav li a {
    display: flex;
    padding: 6px 8px;
    line-height: 27px;
    font-size: 19px;
}

/* active类选择器,表示默认选中的a */
.nav li .active,
.nav li a:hover {
    border-bottom: 2px solid #00a4ff;;
}

.search {
    /* 设置搜索框的父级布局为flex，这样其子盒子都会变成弹性盒子 */
    display: flex;

    /* 加外边距 */
    margin-left: 64px;

    /* 加内边距 */
    padding-left: 19px;
    padding-right: 12px;

    /* 搜索框大小、背景色、圆角 */
    width: 412px;
    height: 40px;
    background-color: #f3f5f7;
    border-radius: 20px;
}

.search input {
    /* 设置输入框在搜索框所有标签都加载好后，占剩余的一份，因为就剩它一个，所以占父级所有剩余空间 */
    flex: 1;

    /* 消除输入框原有格式，使其融入搜索背景 */
    border: 0;
    background-color: transparent;
    
    /* 去掉焦点框 */
    outline: none;
}

/* 修改input输入框中的 placeholder文字属性 */
。search input::placeholder {
    font-size: 14px;
    color: #999;
}

/* 设置搜索框的的放大镜超链接 */
.search a {
    align-self: center;
    background-image: url(./images/放大镜.png);
    background-size: cover;

    width: 16px;
    height: 16px;
}

/* 用户区域 */
.user {
    margin-left: 32px;
    margin-top: 4px;
}

.user img {
    margin-right: 7px;

    /* 行内块和行内元素居中 */
    vertical-align: middle;
    width: 30px;
    height: 30px;
}

.user span {
    font-size: 16px;
    color: #666;
}

/* banner区域 */
.banner {
    height: 412px;
    background-color: #0092cd;
}

.banner .wrapper {
    display: flex;
    justify-content: space-between;
    height: 412px;
    background-image: url(./uploads/banner.png);
    background-position: center;
    background-size: 70%;
    background-repeat: no-repeat;

}


/* 测导航 */
.banner  .wrapper .left {
    padding: 3px 20px;
    width: 191px;
    height: 412px;
    background-color: rgba(0, 0, 0, 0.42);
}

.banner .wrapper .left a {
    /* 块级：宽度为父级的100% */
    display: block;
    height: 46px;
    line-height: 46px;
    font-size: 16px;
    color: #fff;
}

.banner .left a:hover {
    color: #00a4ff;
}


/* 右边课程栏 */
.banner .right {
margin-top: 60px;
width: 218px;
height: 305px;
background-color: #209dd5;
border-radius: 10px;
}

/* 标题 */
.banner .right h3 {
    margin-left: 14px;
    height: 48px;
    line-height: 48px;
    font-size: 15px;
    color: #fff;
    font-weight: 400;
}

.banner .right .content {
    padding: 14px;
    height: 257px;
    background-color: #fff;
    border-radius: 10px;
}

.banner .right .content dl {
    margin-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.banner .right .content dt {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}

.banner .right .content dd {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 16px;
}


.banner .right .content dl dd span {
    color: #00a4ff;
}

.banner .right .content dl dd strong {
    color: #7d7d7d;
    font-weight: 400;
}

.banner .right a {
    display: block;
    text-align: center;
    line-height: 32px;
    height: 32px;
    font-size: 14px;
    color: #fff;
    background-color: #00a4ff;
    border-radius: 15px;
    
}


/* 精品推荐区域 */
.recommend {
    display: flex;
    margin-top: 11px;
    padding: 0 20px;
    height: 60px;
    line-height: 60px;
    background-color: #fff;
    box-shadow: 0px 1px 2px 0px rgba(211, 211, 211, 0.5);
}

.recommend h3 {
    font-size: 18px;
    color:#00a4ff;
    font-weight: 400;
}

.recommend ul {
    flex: 1;
    display: flex;
}

.recommend ul li a {
    padding: 0 20px;
    border-right: 1px solid #e0e0e0;
    font-size: 18px;
}

.recommend ul li:last-child a {
    border-right: 0px;
}

.recommend .modify {
    font-size: 16px;
    color: #00a4ff;
}

.course {
    margin-top: 15px;

}

.hd {
    display: flex;
    justify-content: space-between;
    height: 60px;
    line-height: 60px;    
}

.course .hd h3 {
    font-size: 21px;
    font-weight: 400;
}

.course .more {
    font-size: 14;
    color: #999;
}


.bd ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}


/* 课程内容-公共 */
.bd li {
    margin-bottom: 14px;
    width: 228px;
    height: 271px;
    /* background-color: slategray; */
}



.bd li .pic {
    height: 165px;
    background-image: url(./uploads/JavsScript数据看板项目实践.png);
    background-repeat: no-repeat;
    background-size: cover;
    /* border-radius: 25px 25px 0 0; */
}

.bd li .text {
    /* border-radius: 0 0 25px 25px; */
    padding: 20px;
    height: 115px;
    background-color: #fff;
}

.bd li .text h4 {
    margin-bottom: 13px;
    height: 40px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

.bd li .text p {
    font-size: 14px;
    line-height: 20px;
    color: #999;
}

.bd li .text p span {
    color: #fa6400;
}

.bd li .text p i {
    font-style: normal;
}


/* 前端开发工程师 */

/* 标题 */
.hd ul {
    display: flex;
}

.hd ul li {
    margin-right: 60px;
    font-size: 16px;
}

.hd ul .active {
    color: #00a4ff;
}

/* 内容 */
/* 整体盒子 */
.bd {
    display: flex;
    justify-content: space-between;
}

/* 左侧 */
.bd .left {
    /* background-color: #00a4ff; */
}

.bd .left img {
    width: 228px;
    height: 386px;
}

/* 右侧 */
.bd .right {
    width: 957px;
    /* background-color: #00a4ff; */
}

/* 右侧上图 */
.bd .right .top {
    margin-bottom: 15px;
}

.bd .right .top img {
    width: 957px;
    height: 100px;
}


/* 版权区域 */
.footer {
    margin-top: 60px;
    padding-top: 60px;
    height: 273px;
    background-color: #fff;
}

.footer .wrapper {
    display: flex;
    justify-content: space-between;
}

/* 版权区域-左侧 */
.footer .wrapper .left {
    width: 440px;
    /* background-color: orange; */
}

.footer .left img {
    width: 216px;
    height: 60px;
}

.footer .left p {
    margin-top: 24px;
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 17px;
    columns: #666;
}

.footer .left .download {
    display: block;
    text-align: center;
    line-height: 34px;
    width: 120px;
    height: 36px;
    font-size: 16px;
    color: #00a4ff;
    border: 1px solid #00a4ff;
}

/* 版权区域-右侧 */
.footer .right {
    display: flex;

}

.footer .right dl {
    margin-right: 130px;

}

/* 标题 */
.footer .right dt {
    margin-bottom: 12px;
    font-size: 16p;
    line-height: 23px;
}

.footer .right a {
    font-size: 14px;
    color: #666;
    line-height: 24px;
}